﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Optimization;

namespace Ymca.Web
{
	public class BundleConfig
	{
		public static void RegisterBundles(BundleCollection bundles)
		{
			bundles.Add(new StyleBundle("~/bootstrap/css").Include(
				"~/Libs/Bootstrap/css/bootstrap.css",
				"~/Libs/Bootstrap/css/bootstrap-theme.css",
				"~/Libs/Bootstrap/css/bootstrap-responsive.css"));
			bundles.Add(new StyleBundle("~/site/css").Include(
				"~/Content/Styles/site.css"));

			bundles.Add(new ScriptBundle("~/jquery/js").Include(
				"~/Libs/Jquery/js/jquery-{version}.js"));
			bundles.Add(new ScriptBundle("~/bootstrap/js").Include(
				"~/Libs/Bootstrap/js/bootstrap.js",
				"~/Libs/Bootstrap/js/bootstrap-file-input.js"));

			RegisterCkEditor(bundles);
		}

		private static void RegisterCkEditor(BundleCollection bundles)
		{
			bundles.Add(new ScriptBundle("~/ckeditor/js").Include(
				"~/Libs/Ckeditor/ckeditor.js"));
		}
	}
}